package com.oocl.im.server;

import com.oocl.im.constants.ServerConstants;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class IMServer {
	public void run() throws IOException {
		ServerSocket server = new ServerSocket(ServerConstants.SERVER_PORT);
		while(true) {
			Socket socket = server.accept();
			new Thread(new IMServerRunnable(socket)).start();
		}
	}
}
